﻿using System;
using Noea.TogSim.Model.Interfaces;

namespace Noea.TogSim.Model.Signal
{
    public class SignalEventArgs : ISignalEventArgs
    {
        #region ISensorEventArgs Members

        ISignal _signal;
        Object _oldValue;
        Object _newValue;

        public SignalEventArgs(ISignal s, object oldv, object newv)
        {
            _signal = s;
            _oldValue = oldv;
            _newValue = newv;
        }

        public ISignal Signal { get { return _signal; } }
        public object OldValue { get { return _oldValue; } }
        public object NewValue { get { return _newValue; } }

        #endregion
    }
}
